package arithmetic.jinritoutiao;

/**
 * Created by jiangfeng on 2017/10/25.
 */

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int amount = in.nextInt();
        int[][] value = new int[amount][4];
        for (int i = 0; i < amount; i++) {
            value[i][0] = Integer.valueOf(in.next());
            value[i][1] = Integer.valueOf(in.next());
            value[i][2] = Integer.valueOf(in.next());
            value[i][3] = Integer.valueOf(in.next());
        }
        String result = "no";
        for (int i = 0; i < amount; i++) {
            int times = value[i][0] - value[i][1];
            int temp = times - value[i][2] - (value[i][3] * 2);
            if (temp == 0 || (temp > 0 && temp % 3 == 0)) {
                result = "yes";
            } else {
                // �ڶ������
                int cha = value[i][2] - value[i][3];
                int max = cha > 0 ? value[i][2] : value[i][3];
                if (cha > 0) {
                    temp = times - max - cha;
                } else {
                    temp = times - max + cha;
                }
                if (temp == 0 || (temp > 0 && temp % 3 == 0)) {
                    result = "yes";
                }
            }
            System.out.println(result);
        }
    }
}